package cn.edu.scau.cmi.wujiaming.comprehension.controller;

import java.net.URL;
import java.util.ResourceBundle;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;

public class MyController implements Initializable {
	@FXML
	private ImageView imageView;

	@Override
	public void initialize(URL arg0, ResourceBundle arg1) {
		imageView.setImage(new Image("/cn/edu/scau/cmi/wujiaming/myPicture.jpg"));
	}

	public void open01(ActionEvent event) {
		// new
		// cn.edu.scau.cmi.wujiaming.experiment1.client.InterProgrammingClient().openNewView();
	}

	public void open02(ActionEvent event) {
		new cn.edu.scau.cmi.wujiaming.experiment1.Client().openNewView_singleton();
	}

	public void open03(ActionEvent event) {
		new cn.edu.scau.cmi.wujiaming.experiment1.Client().openNewView_multiple();
	}

	public void open04(ActionEvent event) {
		new cn.edu.scau.cmi.wujiaming.experiment3.client.SimpleFactoryClient().openNewView_SF();
	}

	public void open05(ActionEvent event) {
		new cn.edu.scau.cmi.wujiaming.experiment3.client.FactoryMethodClient().openNewView_FM();
	}

	public void open06(ActionEvent event) {
		new cn.edu.scau.cmi.wujiaming.experiment3.client.AbstractFactoryClient().openNewView_AF();
	}

	public void open07(ActionEvent event) {
		new cn.edu.scau.cmi.wujiaming.experiment4.client.Client().openNewView_adapterOfObject();
	}

	public void open08(ActionEvent event) {
		new cn.edu.scau.cmi.wujiaming.experiment4.client.Client().openNewView_adapterOfClass();
	}

	public void open09(ActionEvent event) {
		cn.edu.scau.cmi.wujiaming.experiment5.client.ConsistentComponentClient.setTitle("实验五-安全组合模式");
		new cn.edu.scau.cmi.wujiaming.experiment5.client.ConsistentComponentClient().openNewView();
	}

	public void open10(ActionEvent event) {
		cn.edu.scau.cmi.wujiaming.experiment5.client.ConsistentComponentClient.setTitle("实验五-一致组合模式");
		new cn.edu.scau.cmi.wujiaming.experiment5.client.ConsistentComponentClient().openNewView();
	}

	public void open11(ActionEvent event) {
		new cn.edu.scau.cmi.wujiaming.hibernate.client.ComprehensionClient().openNewView_Hibernate();
	}

	public void open12(ActionEvent event) {
		// new
		// cn.edu.scau.cmi.zhouhailiang.Experiment8.client.SpringClient().openNewView();
	}

	public void open13(ActionEvent event) {
		// new cn.edu.scau.cmi.zhouhailiang.Experiment9.client.Client().openNewView();
	}
}